<template>
    <div>
        <button @click="getCenter()">个人中心</button>      
    </div>
</template>

<script>
import { $service } from "@/service/reqService";
import store from 'store-gem.js';

var myStore = new store(localStorage)

export default {
    name:'UserCenter',
    data(){
        return {
            
        }
    },
    methods:{
        getCenter(){
            let uid = myStore.get('user_info') ? myStore.get('user_info').uid : ''
            $service.getUserinfo("customer/center?uid="+uid).then((response) => {
                console.log(response.data)
            })
        }
    }
}
</script>

<style scoped>

</style>
